﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;

public partial class Module_NoteManger_NoteViewNew : PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["NoteID"] != null)
            {
                LoadTxt(Request.QueryString["NoteID"].ToString());
            }
        }

    }

    private void LoadTxt(string NoteID)
    {
        Ylh.BLL.NoteBLL blln = new Ylh.BLL.NoteBLL(DbConnectionStr);

      Ylh.Model.TbNote note=  blln.GetModel( Convert.ToInt32( NoteID));


      Label2.Text = note.Summary;
      Label2.EncodeText = false;


      Label1.Text = note.Content;
      Label1.EncodeText = false;
    }


}